<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Productid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-productid" data-rule="required" data-source="clothmaking_product/index" class="form-control selectpage" name="row[productid]" type="text" value="{$row.productid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Thickness_min')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-thickness_min" data-rule="required" class="form-control" name="row[thickness_min]" type="number" value="{$row.thickness_min|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Thickness_max')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-thickness_max" data-rule="required" class="form-control" name="row[thickness_max]" type="number" value="{$row.thickness_max|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Spring_min')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-spring_min" data-rule="required" class="form-control" name="row[spring_min]" type="number" value="{$row.spring_min|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Spring_max')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-spring_max" data-rule="required" class="form-control" name="row[spring_max]" type="number" value="{$row.spring_max|htmlentities}">
        </div>
    </div>

    

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Density_min')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-density_min" data-rule="required" class="form-control" name="row[density_min]" type="number" value="{$row.density_min|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Density_max')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-density_max" data-rule="required" class="form-control" name="row[density_max]" type="number" value="{$row.density_max|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hardness_min')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hardness_min"  class="form-control" name="row[hardness_min]" type="number" value="{$row.hardness_min|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hardness_max')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hardness_max" class="form-control" name="row[hardness_max]" type="number" value="{$row.hardness_max|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Grain')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-grain" data-rule="required" class="form-control" name="row[grain]" type="number" value="{$row.grain|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Csamples')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-csamples" data-rule="required" class="form-control" name="row[csamples]" type="number" value="{$row.csamples|htmlentities}">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Psamples')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-psamples" data-rule="required" class="form-control" name="row[psamples]" type="number" value="{$row.psamples|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quantity" data-rule="required" class="form-control" name="row[quantity]" type="number" value="{$row.quantity|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deliverytime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deliverytime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[deliverytime]" type="text" value="{:$row.deliverytime?datetime($row.deliverytime):''}">
        </div>
    </div>
    <div class=" form-group ">
        <label class="control-label col-xs-12 col-sm-2 ">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8 ">

            <div class="radio ">
                {foreach name="statusList " item="vo "}
                <label for="row[status]-{$key} ">
                    <input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" 
                    {in name="key" value="$row.status"} checked  {/in}
                    {if condition="$key eq 'completed'"} disabled {/if}/> {$vo}</label>
                
                {/foreach}
            </div>

        </div>
    </div>


    <div class=" form-group ">
        <label class="control-label col-xs-12 col-sm-2 ">{:__('Producttype')}:</label>
        <div class="col-xs-12 col-sm-8 ">

            <div class="radio ">
                {foreach name="producttypelist " item="vo "}
                <label for="row[producttype]-{$key} "><input id="row[issample]-{$key}" name="row[producttype]" type="radio" value="{$key}" {in name="key" value="$row.producttype"}checked{/in} /> {$vo}</label> {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group ">
        <label class="control-label col-xs-12 col-sm-2 ">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8 ">
            <input id="c-weigh " data-rule="required " class="form-control " name="row[weigh] " type="number " value="{$row.weigh|htmlentities} ">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-mark" class="form-control" name="row[mark]" type="text">
                {$row.mark|htmlentities}
                </textarea>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            {if condition="$row.status neq 'completed'"}
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            {/if}
        </div>
    </div>
</form>